package com.zqxq.lottery.entity.enums;

/**
 * 说    明：   活动类型
 * 创 建 人：苦智
 * 创建时间：	2018/4/12 16:32
 * 修 改 人：
 * 修改日期：
 **/
public enum ActivityIdEnum {
    REGISTER(1L,"新用户注册奖励"),
    INVITE_ORDER(2L,"邀请用户首下单奖励"),
    ORDER_LOST_PRIZE(3L,"首单未中奖奖励"),
    RECHARGE(4L,"充值奖励"),
    RECHARGE_ORDER(5L,"邀请用户首充值奖励"),
    RECHARGE_500_ORDER(8L,"邀请用户累积充值500奖励"),
    RECHARGE_1000_ORDER(9L,"邀请用户累积充值1000奖励"),
    FIRST_ORDER_REWARD(10L,"用户首次参与竞猜奖励"),
    FIRST_RECHARGE_REWARD(11L,"用户首次充值奖励"),
    FIRST_WIN_ORDER_REWARD(12L,"用户首次中奖奖励"),
    FIRST_INVITE_REGISTER_REWARD(13L,"首次邀请好友注册"),
    FIRST_TODAY_SIGN_REWARD(14L,"今日签到"),
    FIRST_TODAY_ORDER_REWARD(15L,"今日参与竞猜"),
    FIRST_TODAY_ORDER_5_REWARD(16L,"今日参与5次竞猜"),
    FIRST_TODAY_FIRST_WIN_REWARD(17L,"今日首次中奖"),
    FIRST_TODAY_WIN_3_REWARD(18L,"今日中奖3次"),
    FIRST_TODAY_ORDER_FOOTBALL_REWARD(19L,"今日下单竞猜足球"),
    FIRST_TODAY_ORDER_GUESSBALL_REWARD(20L,"今日下单欢乐猜球"),
    FIRST_TODAY_ORDER_ELECTRIC_REWARD(21L,"今日下单电竞竞猜"),
    FIRST_TODAY_ORDER_20RMB_REWARD(22L,"今日下单满20元"),
    FIRST_TODAY_ORDER_50RMB_REWARD(23L,"今日下单满50元"),
    FIRST_TODAY_ORDER_100RMB_REWARD(24L,"今日下单满100元"),
    FIRST_TODAY_INVITE_REGISTER_REWARD(25L,"新增好友注册"),
    LOGIN(99L,"新用户登录奖励");

    private Long id;
    private String name;

    ActivityIdEnum(Long id, String name) {
        this.id = id;
        this.name = name;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }


    public static ActivityIdEnum getEnumById(Long id) {

        for (ActivityIdEnum bt : values()) {
            if (bt.id == id) {
                return bt;
            }
        }
        return null;
    }

}
